﻿using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

namespace GameEditor
{
    public class Camera2D
    {
        public Vector2 position;
        public float rotation;
        public float zoom;

        public Camera2D()
        {
            position = Vector2.Zero;
            zoom = 1.0f;
        }

        public Matrix TransformMatrix
        {
            get
            {
                return Matrix.CreateRotationZ(rotation) * Matrix.CreateScale(zoom) *
                       Matrix.CreateTranslation(position.X, position.Y, 0);
            }
        }
    }
}
